package org.example.teachermanager.dao;

import org.example.teachermanager.entity.Teacher;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface TeacherRepository extends JpaRepository<Teacher, Integer> {
    List<Teacher> findByNameLike(String name);
    Page<Teacher> findByNameLike(String name, Pageable pageable);
    Page<Teacher> findBySex(String sex, Pageable pageable);
    Page<Teacher> findByNumber(String numbe, Pageable pageable);
}
